﻿#ifndef FILE_CSV_H
#define FILE_CSV_H
#include "types.h"
#include <QFile>
class File_csv
{
public:
    File_csv(QString fname);
    ~File_csv() {
        file->close();
        delete file;
    }
    void write(QString data);
    void writeLine(QString data);
    bool is_empty();
    bool is_error(){
        return !b_error;
    }
private:
    QString name;
    QFile *file;
    bool b_error;
};

#endif // FILE_CSV_H
